<template>
  <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
    <van-swipe-item v-for="(item, index) in swipe_data" :key="index">
      <img :src="item" alt="" />
    </van-swipe-item>
  </van-swipe>
</template>

<script>
export default {
  name: "Detail_swiper",
  props: {
    swipe_data: {
      type: Array,
      default: [],
    },
  },
}
</script>

<style lang="less" scoped>
.my-swipe {
  height: 250px;
  overflow: hidden;
}
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 150px;
  text-align: center;
  img {
    width: 100%;
  }
}
</style>
